package com.seveneight.baijiesteward.ui.first.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.seveneight.baijiesteward.R;
import com.seveneight.baijiesteward.base.BaseActivity;

import butterknife.BindView;

/**
 * Created by user1 on 2018/4/2.
 */

public class EmptyActivity extends BaseActivity implements View.OnClickListener {

    @BindView(R.id.iv_back)
    ImageView iv_back;
    @BindView(R.id.tv_title)
    TextView tv_title;

    @Override
    protected void initLayout() {
       setContentView(R.layout.activity_empty);
    }

    @Override
    protected void initView() {
        Bundle bundle = getIntent().getExtras();
        if (bundle != null) {
            tv_title.setText(bundle.getString("title"));
        }
    }

    @Override
    protected void initData() {
        iv_back.setOnClickListener(this);
    }

    @Override
    protected void setListener() {

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.iv_back:
                finish();
                break;
        }
    }
}
